package com.hong.spring.common.config.condition;

import com.hong.spring.common.entity.ConditionUser7;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: csh
 * @Date: 2020/7/10 17:27
 * @Description:
 */
@Configuration
public class ConfigSystem {
    @Conditional({SystemCondition.class})
    @Bean(name = "conditionUser7")
    public ConditionUser7 getSystemInfo(){
        return new ConditionUser7("hong2");
    }
}
